package cn.wonderland.org.vo;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.wonderland.base.domain.BaseDomain;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import javax.validation.constraints.NotBlank;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class ShopVo extends BaseDomain {

    @NotBlank(message = "店铺名称不能为空！")
    @Excel(name="店铺名称", orderNum = "1", width = 30, isImportField = "true_st")
    private String name;

    @NotBlank(message = "店铺电话不能为空！")
    @Excel(name="电话", orderNum = "2", width = 30, isImportField = "true_st")
    private String tel;

    @Excel(name="创建", orderNum = "3", width = 30, isImportField = "true_st", format = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date registerTime = new Date();
    /**
     * 店铺状态：待审核_0","已审核_1","驳回_2","已激活_3
     */
    @Excel(name="状态", replace = {"待审核_0","已审核_1","驳回_2","已激活_3"}, orderNum = "4", width = 30, isImportField = "true_st")
    private Integer state = 0;

    @NotBlank(message = "店铺地址不能为空！")
    @Excel(name="地址", orderNum = "5", width = 30, isImportField = "true_st")
    private String address;

    @Excel(name="店铺Logo", orderNum = "6", width = 30, isImportField = "true_st")
    private String logo;
}